/* 年份标题样式 */
.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    margin-bottom: 2rem;
}

.year-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.back-to-albums {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #495057;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.back-to-albums:hover {
    background-color: #495057;
    color: #fff;
    transform: translateX(-5px);
}

/* 照片网格样式 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 4rem 4rem;
}

.photo-item {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #343a40;
    z-index: 1;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.photo-description {
    padding: 1.5rem;
    background: #fff;
}

.photo-description p {
    margin: 0;
    font-size: 1.1rem;
    color: #495057;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .year-header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .year-header h1 {
        font-size: 2.5rem;
    }

    .photo-grid {
        padding: 0 2rem 2rem;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .photo-item img {
        height: 250px;
    }
}

/* 动画效果 */
.photo-item {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 